const path = require("path");

const resolve = (p) => {
	return path.resolve(__dirname, p);
};
/** @type {import('tailwindcss').Config} */
module.exports = {
	// 注意此处，一定要 `path.resolve` 一下, 传入绝对路径
	// 你要有其他目录，比如 components，也必须在这里，添加一下
	content: ["./index.html", "./pages/**/*.{html,js,ts,jsx,tsx,vue}", "./components/**/*.{html,js,ts,jsx,tsx,vue}"]
		.map(resolve),
	theme: {
		extend: {
			colors: {
				'yellowx': "#fede67",
				'orangex': "#ff9a62",
				'purplex': '#c9a0ff',
				'greenx': '#b6f36a',
				'blackx': '#1b1a1d',
				'blackxlight': "#28292a",
				'whitex': '#fefefe',
				'whitexlight': "#a2a2a2",
				'bluex': '#408dfc',
				'pinkx': '#fa8b8d'
			},
		},
	},
	corePlugins: {
		// 跨多端可以 h5 开启，小程序关闭
		preflight: false,
		boxSizing: true,
	},
};